package cn.edu.zafu.bigdata.Wym;

public class Wym_Circle extends Wym_Shape{

    private double radius;

    public Wym_Circle(double radius){
        this.radius=radius;
    }

    @Override
    public double area() {
        return Math.PI*radius*radius;
    }

    @Override
    public double perimeter() {
        return 2*Math.PI*radius;
    }
}
